;;; Our local x10 configuration. Eventually, this will move into a database.
;; For now, just a collection of maps to vectors of strings.

(ns x10.config)

;; A list of controllers, each controller being a list of name, type, the port
;; it's connected to, and the delay in this controller requires to settle.
(def *controllers* [["cm17a" "CM17A" "/dev/cuau0" "500"]])

;; A list of all configured devices, each a list consisting of it's name, it's
;; controllers name (first element of a *controllers* vector), the house code
;; and unit it's connected to on that controller
(def *names* [["Grill" "cm17a" "A" "8"]
	      ["TV Lamp" "cm17a" "A" "10"]
	      ["Fireplace Lamp" "cm17a" "A" "11"]
	      ["Back Lamp" "cm17a" "A" "12"]
	      ["Bedroom Lamp" "cm17a" "A" "13"]
	      ["Bedroom Speakers" "cm17a" "A" "4"]
	      ["Thermostat" "cm17a" "A" "5"]
	      ["House Speakers" "cm17a" "M" "3"]
	      ["Library Lamp" "cm17a" "M" "9"]
	      ["Office Light" "cm17a" "M" "10"]
	      ["Printer" "cm17a" "M" "8"]])

;; A list of groups, each of which has the group name and then a vector of names
;; in the group (from *names*).
(def *groups* [["Living Room Lights" ["TV Lamp" "Fireplace Lamp" "Back Lamp"]]
	       ["All Lights" ["TV Lamp" "Fireplace Lamp" "Back Lamp" "Bedroom Lamp"
			      "Library Lamp" "Office Light"]]
	       ["Test" ["Office Light" "House Speakers"]]])
